package com.fm.text.searcher;

public class Word {
	private int start;
	private int end;
	private String content;
	private Object data;

	public Word(int start, int end, String content) {
		this(start, end, content, null);
	}

	public Word(int start, int end, String content, Object data) {
		this.start = start;
		this.end = end;
		this.content = content;
		this.data = data;
	}

	public int getStart() {
		return start;
	}

	public int getEnd() {
		return end;
	}

	public String getContent() {
		return content;
	}

	public Object getData() {
		return data;
	}

	@Override
	public String toString() {
		return content;
	}
}
